package study.day5.t4;

public class T7 {
    public static void main(String[] args) {
        Fish fish1=new BaiFish(48);
        Fish fish2=new FeiFish(60);
        Fish fish3=new QiFish(110);
        //计算游行距离
        int num1 = fish1.calc(3);
        System.out.println("白鲨距离"+num1);
        int num2 = fish2.calc(6);
        System.out.println("飞鱼距离"+ num2);
        int num3 = fish3.calc(9);
        System.out.println("旗鱼距离"+ num3);
    }
}
